<ion-view view-title="扫码列表" devin-hide-tabs="true">
  <ion-nav-buttons side="right">
    <span class="nav-right-button" ng-click="finish()">完成</span>
  </ion-nav-buttons>

  <ion-content class="has-header" style="margin-bottom: 60px">
    <ion-list>
      <ion-item class="item-input item-icon-right">
        <span class="input-label">输入序列号：</span>
        <input type="tel" ng-trim="true" ng-model="serialNumberObj.serialNumber" ng-show="type == 'serialNumber'" id="serialNumber" />
        <input type="tel" ng-trim="true" ng-model="serialNumberObj.serialNumber2" ng-show="type == 'serialNumber1'" id="serialNumber1" />
        <i class="icon ion-ios-plus-outline" ng-click="add()"></i>
      </ion-item>
      <span>
        <ion-item class="item-icon-right" ng-show="type == 'serialNumber'" ng-repeat="value in serialList">
          {{value.serialNumber}}
          <i class="icon ion-ios-minus-outline" ng-click="del($index)"></i>
        </ion-item>
      </span>
      <ion-item ng-show="type == 'serialNumber1'" class="item-icon-right" ng-repeat="value in serialList">
        {{value.serialNumber2}}
        <i class="icon ion-ios-minus-outline" ng-click="del($index)"></i>
      </ion-item>
    </ion-list>
  </ion-content>

  <div class="tabs" style="padding: 0;">
    <button class="button button-full button-positive" style="margin: 0;" ng-click="scanBarcode()">点击扫码</button>
  </div>
</ion-view>
